package cn.zyx.config.canal;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "canal.server") // 将配置文件中的属性值注入到类的属性中
public class CanalConfig {

    private String host;
    private int port;
    private String destination;
    private String username;
    private String password;

}
